import * as React from "react";
import { renderRoutes, RouteConfig } from "react-router-config";

interface Iprops {
  route: RouteConfig;
}
class RouterSure extends React.Component<Iprops> {
  public render() {
    return <div>{renderRoutes(this.props.route.routes)}</div>;
  }
}

export default RouterSure;
